<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head id="Head">

<title>
	C++ 运算符优先级列表 - brent's hut - C++博客
</title><meta http-equiv="Content-Type" content="text/html; 
charset=UTF-8"><meta id="metaKeywords" name="keywords" content="C++ 
运算符优先级列表"><link type="text/css" rel="stylesheet" 
href="C%E4%BC%98%E5%85%88%E7%BA%A7_files/common.css"><link id="MainCss" 
type="text/css" rel="stylesheet" 
href="C%E4%BC%98%E5%85%88%E7%BA%A7_files/style.css"><link id="MainCss2" 
type="text/css" rel="stylesheet" 
href="C%E4%BC%98%E5%85%88%E7%BA%A7_files/red.css"><link 
id="SecondaryCss" type="text/css" rel="stylesheet" 
href="C%E4%BC%98%E5%85%88%E7%BA%A7_files/customcss.css"><link 
id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" 
href="http://www.cppblog.com/aqazero/rss.aspx"></head><body>
    <form name="Form1" method="post" action="8284.html" 
onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<div>
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" 
type="hidden">
<input name="__VIEWSTATE" id="__VIEWSTATE" value="" type="hidden">
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/WebResource.js" type="text/javascript"></script>

<script language="JavaScript">
									function ctlent(evt,id)
											{
												if(evt.ctrlKey && evt.keyCode == 13)
												{	
													try
													{
														TempSave(id);
													}
													catch(ex)
													{
													}
													finally
													{
													    __doPostBack('AjaxHolder$PostComment$btnSubmit','')
													}
												}
		
												}</script>
												<script language="JavaScript">function SetReplyAuhor(author){document.getElementById('AjaxHolder_PostComment_tbComment').value+="@"+author+"\n";document.getElementById('AjaxHolder_PostComment_tbComment').focus();return false}</script>
<script src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/ScriptResource_002.js" type="text/javascript"></script>
<script src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/ScriptResource.js" type="text/javascript"></script>
<script src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/ScriptResource_003.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</script>

        

<div id="top">

<h1><a id="Header1_HeaderTitle" class="headermaintitle" 
href="http://www.cppblog.com/aqazero/">brent's hut</a></h1>
<p id="tagline"></p>
</div>

<div id="leftmenu" style="display: inline;">

	
<h3>导航</h3>
<ul>
	<li>
		<a id="MyLinks1_HomeLink" href="http://www.cppblog.com/">C++博客</a>
	</li><li><a id="MyLinks1_MyHomeLink" 
href="http://www.cppblog.com/aqazero/">首页</a></li>
	<li><a id="MyLinks1_NewPostLink" 
href="http://www.cppblog.com/aqazero/admin/EditPosts.aspx?opt=1">新随笔</a></li>
	<li>
		<a id="MyLinks1_ContactLink" accesskey="9" 
href="http://www.cppblog.com/aqazero/contact.aspx?id=1">联系</a>
	</li><li>
		<a id="MyLinks1_Syndication" 
href="http://www.cppblog.com/aqazero/Rss.aspx">聚合</a><a 
id="MyLinks1_XMLLink" href="http://www.cppblog.com/aqazero/Rss.aspx"><img
 src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/xml.gif" style="border-width: 
0px;"></a>
	</li><li>
		<a id="MyLinks1_Admin" 
href="http://www.cppblog.com/aqazero/admin/EditPosts.aspx">管理</a></li>
</ul>

	
	
	
<h3>公告</h3>
	<script src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-848075-2";
urchinTracker();
</script>
<a href="http://www.cppblog.com/aqazero/gallery/image/1276.html"><img 
src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/r_dragon.jpg" 
style="border-width: 0px;" width="90%" align="center"></a>

	
<h3>常用链接</h3>
<ul>
		<li><a id="SingleColumn1_ctl00_repeaterLinks_ctl01_lnkLinkItem" 
href="http://www.cppblog.com/aqazero/MyPosts.html">我的随笔</a></li>
	
		<li><a id="SingleColumn1_ctl00_repeaterLinks_ctl02_lnkLinkItem" 
href="http://www.cppblog.com/aqazero/MyComments.html">我的评论</a></li>
	
		<li><a id="SingleColumn1_ctl00_repeaterLinks_ctl03_lnkLinkItem" 
href="http://www.cppblog.com/aqazero/OtherPosts.html">我参与的随笔</a></li>
	</ul>
		<h3>随笔分类</h3>
		
				<ul>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_Link" 
href="http://www.cppblog.com/aqazero/category/5405.html">C#(15)</a> <a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_RssLink" 
title="Subscribe to C#(15)" 
href="http://www.cppblog.com/aqazero/category/5405.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_Link" 
href="http://www.cppblog.com/aqazero/category/1964.html">C++(31)</a> <a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_RssLink" 
title="Subscribe to C++(31)" 
href="http://www.cppblog.com/aqazero/category/1964.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_Link" 
href="http://www.cppblog.com/aqazero/category/2880.html">Database(6)</a>
 <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_RssLink" 
title="Subscribe to Database(6)" 
href="http://www.cppblog.com/aqazero/category/2880.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_Link" 
href="http://www.cppblog.com/aqazero/category/2882.html">Encrypt(3)</a> <a
 id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_RssLink" 
title="Subscribe to Encrypt(3)" 
href="http://www.cppblog.com/aqazero/category/2882.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_Link" 
href="http://www.cppblog.com/aqazero/category/2881.html">Java(8)</a> <a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_RssLink" 
title="Subscribe to Java(8)" 
href="http://www.cppblog.com/aqazero/category/2881.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_Link" 
href="http://www.cppblog.com/aqazero/category/1965.html">Linux(1)</a> <a
 id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_RssLink" 
title="Subscribe to Linux(1)" 
href="http://www.cppblog.com/aqazero/category/1965.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_Link" 
href="http://www.cppblog.com/aqazero/category/3167.html">reading 
note(13)</a> <a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_RssLink" 
title="Subscribe to reading note(13)" 
href="http://www.cppblog.com/aqazero/category/3167.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_Link" 
href="http://www.cppblog.com/aqazero/category/3631.html">Tools(1)</a> <a
 id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_RssLink" 
title="Subscribe to Tools(1)" 
href="http://www.cppblog.com/aqazero/category/3631.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_Link" 
href="http://www.cppblog.com/aqazero/category/2884.html">Web(7)</a> <a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_RssLink" 
title="Subscribe to Web(7)" 
href="http://www.cppblog.com/aqazero/category/2884.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_Link" 
href="http://www.cppblog.com/aqazero/category/2110.html">Windows(19)</a>
 <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_RssLink" 
title="Subscribe to Windows(19)" 
href="http://www.cppblog.com/aqazero/category/2110.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_Link" 
href="http://www.cppblog.com/aqazero/category/2883.html">Workflow(3)</a>
 <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_RssLink" 
title="Subscribe to Workflow(3)" 
href="http://www.cppblog.com/aqazero/category/2883.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_Link" 
href="http://www.cppblog.com/aqazero/category/2111.html">wxWidgets(5)</a>
 <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_RssLink" 
title="Subscribe to wxWidgets(5)" 
href="http://www.cppblog.com/aqazero/category/2111.html/rss">(rss)</a></li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_Link" 
href="http://www.cppblog.com/aqazero/category/2886.html">对影成三人(10)</a> <a
 id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_RssLink" 
title="Subscribe to 对影成三人(10)" 
href="http://www.cppblog.com/aqazero/category/2886.html/rss">(rss)</a></li>
			
				</ul>
			
	
		<h3>随笔档案</h3>
		
				<ul>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl01_Link" 
href="http://www.cppblog.com/aqazero/archive/2010/08.html">2010年8月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl02_Link" 
href="http://www.cppblog.com/aqazero/archive/2010/04.html">2010年4月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl03_Link" 
href="http://www.cppblog.com/aqazero/archive/2010/03.html">2010年3月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl04_Link" 
href="http://www.cppblog.com/aqazero/archive/2009/11.html">2009年11月 (2)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl05_Link" 
href="http://www.cppblog.com/aqazero/archive/2009/10.html">2009年10月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl06_Link" 
href="http://www.cppblog.com/aqazero/archive/2009/04.html">2009年4月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl07_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/11.html">2008年11月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl08_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/10.html">2008年10月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl09_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/08.html">2008年8月 (6)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl10_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/07.html">2008年7月 (2)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl11_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/06.html">2008年6月 (4)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl12_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/05.html">2008年5月 (3)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl13_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/04.html">2008年4月 (5)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl14_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/03.html">2008年3月 (13)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl15_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/02.html">2008年2月 (7)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl16_Link" 
href="http://www.cppblog.com/aqazero/archive/2008/01.html">2008年1月 (2)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl17_Link" 
href="http://www.cppblog.com/aqazero/archive/2007/12.html">2007年12月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl18_Link" 
href="http://www.cppblog.com/aqazero/archive/2007/11.html">2007年11月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl19_Link" 
href="http://www.cppblog.com/aqazero/archive/2007/10.html">2007年10月 (3)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl20_Link" 
href="http://www.cppblog.com/aqazero/archive/2007/09.html">2007年9月 (3)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl21_Link" 
href="http://www.cppblog.com/aqazero/archive/2007/08.html">2007年8月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl22_Link" 
href="http://www.cppblog.com/aqazero/archive/2007/03.html">2007年3月 (2)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl23_Link" 
href="http://www.cppblog.com/aqazero/archive/2007/02.html">2007年2月 (2)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl24_Link" 
href="http://www.cppblog.com/aqazero/archive/2007/01.html">2007年1月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl25_Link" 
href="http://www.cppblog.com/aqazero/archive/2006/12.html">2006年12月 (3)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl26_Link" 
href="http://www.cppblog.com/aqazero/archive/2006/11.html">2006年11月 (3)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl27_Link" 
href="http://www.cppblog.com/aqazero/archive/2006/10.html">2006年10月 (3)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl28_Link" 
href="http://www.cppblog.com/aqazero/archive/2006/09.html">2006年9月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl29_Link" 
href="http://www.cppblog.com/aqazero/archive/2006/07.html">2006年7月 (3)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl30_Link" 
href="http://www.cppblog.com/aqazero/archive/2006/06.html">2006年6月 (3)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl31_Link" 
href="http://www.cppblog.com/aqazero/archive/2006/05.html">2006年5月 (4)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl32_Link" 
href="http://www.cppblog.com/aqazero/archive/2006/04.html">2006年4月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl33_Link" 
href="http://www.cppblog.com/aqazero/archive/2006/03.html">2006年3月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl34_Link" 
href="http://www.cppblog.com/aqazero/archive/2005/12.html">2005年12月 (15)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl35_Link" 
href="http://www.cppblog.com/aqazero/archive/2005/11.html">2005年11月 (3)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl36_Link" 
href="http://www.cppblog.com/aqazero/archive/2005/09.html">2005年9月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl37_Link" 
href="http://www.cppblog.com/aqazero/archive/2005/08.html">2005年8月 (1)</a>
 </li>
			
				<li><a 
id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl38_Link" 
href="http://www.cppblog.com/aqazero/archive/2005/07.html">2005年7月 (4)</a>
 </li>
			
				</ul>
			
	

<h3>最新评论
	<a id="SingleColumn1__1e53043_RSSHyperlink1" 
href="http://www.cppblog.com/aqazero/CommentsRSS.aspx"><img 
src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/xml.gif" style="border-width: 
0px;"></a></h3>
<div class="RecentComment">
	
			<ul>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl01_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2010/05/13/108868.html#115259">1.&nbsp;re:
 这是个很狡猾的bug。</a>
			</li>
			<li style="">
				@viechang<br><br>你说得对。 具体原因是Drop()函数里面的有1个变量未赋初始值。 <br>
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--brent</li>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl02_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2010/05/12/108868.html#115222">2.&nbsp;re:
 这是个很狡猾的bug。</a>
			</li>
			<li style="">
				评论内容较长,点击标题查看
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--viechang</li>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl03_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2010/05/09/8284.html#114907">3.&nbsp;re:
 C++ 运算符优先级列表</a>
			</li>
			<li style="">
				真是不错，省得翻书了。
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--gkhdgfg</li>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl04_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2010/03/09/108868.html#109258">4.&nbsp;re:
 这是个很狡猾的bug。</a>
			</li>
			<li style="">
				-__-看不出来
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--李现民</li>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl05_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2010/01/09/8284.html#105292">5.&nbsp;re:
 C++ 运算符优先级列表</a>
			</li>
			<li style="">
				@rock<br>就是，都在precedence1，一样的优先级
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--xgenvn</li>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl06_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#104025">6.&nbsp;re:
 C++ 运算符优先级列表</a>
			</li>
			<li style="">
				::域运算符的优先级应该是最高的吧
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--rock</li>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl07_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2009/12/12/60165.html#103068">7.&nbsp;re:
 图形文本编辑器的源码和简单文档</a>
			</li>
			<li style="">
				评论内容较长,点击标题查看
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--chentan</li>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl08_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2009/11/26/15835.html#101940">8.&nbsp;
太感谢了</a>
			</li>
			<li style="">
				太谢谢你了！很详细！连讲解都有！
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--落落</li>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl09_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2009/11/18/58252.html#101312">9.&nbsp;re:
 LoadLibrary in IE activex control</a>
			</li>
			<li style="">
				Thank you too! I solved my problem with the same way you pointing 
out.
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--Jack White</li>
		
			<li style="">
				<a id="SingleColumn1__1e53043_CommentList_ctl10_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2009/11/06/79108.html#100308">10.&nbsp;re:
 使用ASP.net + WF的感受</a>
			</li>
			<li style="">
				能否给个源码？
<br>
<br>谢谢~
<br>
<br>343327982@qq.com
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--choukei</li>
		
			</ul>
		
</div>



</div>

<div id="main">
	
					
	<div class="post">
		<h2>
			<a id="viewpost1_TitleUrl" 
href="http://www.cppblog.com/aqazero/archive/2006/06/08/8284.html">C++ 
运算符优先级列表</a>
		</h2>
		
		<a href="http://www.cppreference.com/operator_precedence.html">http://www.cppreference.com/operator_precedence.html</a>
		<br>
		<table class="code-table" border="1">
				<tbody>
						<tr>
								<th class="code-table-th">Precedence</th>
								<th class="code-table-th">Operator</th>
								<th class="code-table-th">Description</th>
								<th class="code-table-th">Example</th>
								<th class="code-table-th">Associativity</th>
						</tr>
						<tr>
								<td class="code-table-td">1</td>
								<td class="code-table-td">()<br>[]<br>-&gt;<br>.<br>::<br>++<br>--</td>
								<td class="code-table-td">Grouping operator<br>Array access<br>Member
 access from a pointer<br>Member access from an object<br>Scoping 
operator<br>Post-increment<br>Post-decrement</td>
								<td class="code-table-td">(a + b) / 4;<br>array[4] = 2;<br>ptr-&gt;age
 = 34;<br>obj.age = 34;<br>Class::age = 2;<br>for( i = 0; i &lt; 10; i++
 ) ...<br>for( i = 10; i &gt; 0; i-- ) ...</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">2</td>
								<td class="code-table-td">!<br>~<br>++<br>--<br>-<br>+<br>*<br>&amp;<br>(type)<br><a
 href="http://www.cppreference.com/keywords/sizeof.html">sizeof</a></td>
								<td class="code-table-td">Logical negation<br>Bitwise complement<br>Pre-increment<br>Pre-decrement<br>Unary
 minus<br>Unary plus<br>Dereference<br>Address of<br>Cast to a given 
type<br>Return size in bytes</td>
								<td class="code-table-td">if( !done ) ...<br>flags = ~flags;<br>for(
 i = 0; i &lt; 10; ++i ) ...<br>for( i = 10; i &gt; 0; --i ) ...<br>int i
 = -1;<br>int i = +1;<br>data = *ptr;<br>address = &amp;obj;<br>int i = 
(int) floatNum;<br>int size = sizeof(floatNum);</td>
								<td class="code-table-td">right to left</td>
						</tr>
						<tr>
								<td class="code-table-td">3</td>
								<td class="code-table-td">-&gt;*<br>.*</td>
								<td class="code-table-td">Member pointer selector<br>Member 
pointer selector</td>
								<td class="code-table-td">ptr-&gt;*var = 24;<br>obj.*var = 24;</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">4</td>
								<td class="code-table-td">*<br>/<br>%</td>
								<td class="code-table-td">Multiplication<br>Division<br>Modulus</td>
								<td class="code-table-td">int i = 2 * 4;<br>float f = 10 / 3;<br>int
 rem = 4 % 3;</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">5</td>
								<td class="code-table-td">+<br>-</td>
								<td class="code-table-td">Addition<br>Subtraction</td>
								<td class="code-table-td">int i = 2 + 3;<br>int i = 5 - 1;</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">6</td>
								<td class="code-table-td">&lt;&lt;<br>&gt;&gt;</td>
								<td class="code-table-td">Bitwise shift left<br>Bitwise shift 
right</td>
								<td class="code-table-td">int flags = 33 &lt;&lt; 1;<br>int 
flags = 33 &gt;&gt; 1;</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">7</td>
								<td class="code-table-td">&lt;<br>&lt;=<br>&gt;<br>&gt;=</td>
								<td class="code-table-td">Comparison less-than<br>Comparison 
less-than-or-equal-to<br>Comparison greater-than<br>Comparison 
geater-than-or-equal-to</td>
								<td class="code-table-td">if( i &lt; 42 ) ...<br>if( i &lt;= 42 )
 ...<br>if( i &gt; 42 ) ...<br>if( i &gt;= 42 ) ...</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">8</td>
								<td class="code-table-td">==<br>!=</td>
								<td class="code-table-td">Comparison equal-to<br>Comparison 
not-equal-to</td>
								<td class="code-table-td">if( i == 42 ) ...<br>if( i != 42 ) ...</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">9</td>
								<td class="code-table-td">&amp;</td>
								<td class="code-table-td">Bitwise AND</td>
								<td class="code-table-td">flags = flags &amp; 42;</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">10</td>
								<td class="code-table-td">^</td>
								<td class="code-table-td">Bitwise exclusive OR</td>
								<td class="code-table-td">flags = flags ^ 42;</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">11</td>
								<td class="code-table-td">|</td>
								<td class="code-table-td">Bitwise inclusive (normal) OR</td>
								<td class="code-table-td">flags = flags | 42;</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">12</td>
								<td class="code-table-td">&amp;&amp;</td>
								<td class="code-table-td">Logical AND</td>
								<td class="code-table-td">if( conditionA &amp;&amp; conditionB )
 ...</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">13</td>
								<td class="code-table-td">||</td>
								<td class="code-table-td">Logical OR</td>
								<td class="code-table-td">if( conditionA || conditionB ) ...</td>
								<td class="code-table-td">left to right</td>
						</tr>
						<tr>
								<td class="code-table-td">14</td>
								<td class="code-table-td">? :</td>
								<td class="code-table-td">Ternary conditional (if-then-else)</td>
								<td class="code-table-td">int i = (a &gt; b) ? a : b;</td>
								<td class="code-table-td">right to left</td>
						</tr>
						<tr>
								<td class="code-table-td">15</td>
								<td class="code-table-td">=<br>+=<br>-=<br>*=<br>/=<br>%=<br>&amp;=<br>^=<br>|=<br>&lt;&lt;=<br>&gt;&gt;=</td>
								<td class="code-table-td">Assignment operator<br>Increment and 
assign<br>Decrement and assign<br>Multiply and assign<br>Divide and 
assign<br>Modulo and assign<br>Bitwise AND and assign<br>Bitwise 
exclusive OR and assign<br>Bitwise inclusive (normal) OR and assign<br>Bitwise
 shift left and assign<br>Bitwise shift right and assign</td>
								<td class="code-table-td">int a = b;<br>a += 3;<br>b -= 4;<br>a 
*= 5;<br>a /= 2;<br>a %= 3;<br>flags &amp;= new_flags;<br>flags ^= 
new_flags;<br>flags |= new_flags;<br>flags &lt;&lt;= 2;<br>flags 
&gt;&gt;= 2;</td>
								<td class="code-table-td">right to left</td>
						</tr>
						<tr>
								<td class="code-table-td">16</td>
								<td class="code-table-td">,</td>
								<td class="code-table-td">Sequential evaluation operator</td>
								<td class="code-table-td">for( i = 0, j = 0; i &lt; 10; i++, j++
 ) ...</td>
								<td class="code-table-td">left to right</td>
						</tr>
				</tbody>
		</table>
		<div>
		</div>

		<p class="postfoot">
			posted on 2006-06-08 09:33 <a href="http://www.cppblog.com/aqazero/">brent</a>
 阅读(57294) <a href="#Post">评论(5)</a> &nbsp;<a 
href="http://www.cppblog.com/aqazero/admin/EditPosts.aspx?postid=8284">编
辑</a>&nbsp;<a 
href="http://www.cppblog.com/aqazero/AddToFavorite.aspx?id=8284">收藏</a> <a
 href="http://www.cppblog.com/aqazero/services/trackbacks/8284.aspx">引用</a>
  所属分类: <a href="http://www.cppblog.com/aqazero/category/1964.html">C++</a>
 
		</p>
	</div>
	<img src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/8284.jpeg" width="1" 
height="1">
	
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cppblog.com/aqazero/archive/2006/06/08/8284.html"
dc:identifier="http://www.cppblog.com/aqazero/archive/2006/06/08/8284.html"
dc:title="C++ 运算符优先级列表"
trackback:ping="http://www.cppblog.com/aqazero/services/trackbacks/8284.aspx" />
</rdf:RDF>
-->

<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('AjaxHolder$scriptmanager1', document.getElementById('Form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tAjaxHolder$UpdatePanel1'], [], [], 90);
//]]>
</script>

<div id="AjaxHolder_UpdatePanel1">
	    
    <a name="pagedcomment"></a>
<a name="评论">
</a><div id="comments">
<h3><a name="评论">评论</a></h3>
<a name="评论">	
	
			</a><h4>
<a name="评论">				</a><a title="permalink: re: C++ 运算符优先级列表" 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#80289">#</a>&nbsp;<a
 name="80289"></a>re: C++ 运算符优先级列表
					<span>
						2009-04-17 20:16
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl00_NameLink" 
href="http://www.cygoods.com/" target="_blank">创意产品网</a>
			</h4>
			<p>
				收藏了，需要时可以来查&nbsp;&nbsp;<a onclick='return SetReplyAuhor("创意产品网")' 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#post">回
复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" 
href="http://www.cppblog.com/comment?author=%e5%88%9b%e6%84%8f%e4%ba%a7%e5%93%81%e7%bd%91"
 target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl00_DeleteLink" 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl00$DeleteLink','')"></a>&nbsp;&nbsp;<a
 id="AjaxHolder_Comments_CommentList_ctl00_EditLink"></a>
			</p>
		
			<h4>
				<a title="permalink: re: C++ 运算符优先级列表" 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#98619">#</a>&nbsp;<a
 name="98619"></a>re: C++ 运算符优先级列表
					<span>
						2009-10-14 19:50
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl01_NameLink" 
href="http://du.jl.cn/" target="_blank">Xiaodu</a>
			</h4>
			<p>
				不错，很有用……&nbsp;&nbsp;<a onclick='return SetReplyAuhor("Xiaodu")' 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#post">回
复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" 
href="http://www.cppblog.com/comment?author=Xiaodu" target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl01_DeleteLink" 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl01$DeleteLink','')"></a>&nbsp;&nbsp;<a
 id="AjaxHolder_Comments_CommentList_ctl01_EditLink"></a>
			</p>
		
			<h4>
				<a title="permalink: re: C++ 运算符优先级列表" 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#104025">#</a>&nbsp;<a
 name="104025"></a>re: C++ 运算符优先级列表
					<span>
						2009-12-25 10:31
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl02_NameLink" 
target="_blank">rock</a>
			</h4>
			<p>
				::域运算符的优先级应该是最高的吧&nbsp;&nbsp;<a onclick='return 
SetReplyAuhor("rock")' 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#post">回
复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" 
href="http://www.cppblog.com/comment?author=rock" target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl02_DeleteLink" 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl02$DeleteLink','')"></a>&nbsp;&nbsp;<a
 id="AjaxHolder_Comments_CommentList_ctl02_EditLink"></a>
			</p>
		
			<h4>
				<a title="permalink: re: C++ 运算符优先级列表" 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#105292">#</a>&nbsp;<a
 name="105292"></a>re: C++ 运算符优先级列表
					<span>
						2010-01-09 21:20
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl03_NameLink" 
target="_blank">xgenvn</a>
			</h4>
			<p>
				@rock<br>就是，都在precedence1，一样的优先级&nbsp;&nbsp;<a onclick='return 
SetReplyAuhor("xgenvn")' 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#post">回
复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" 
href="http://www.cppblog.com/comment?author=xgenvn" target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl03_DeleteLink" 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl03$DeleteLink','')"></a>&nbsp;&nbsp;<a
 id="AjaxHolder_Comments_CommentList_ctl03_EditLink"></a>
			</p>
		
			<h4>
				<a title="permalink: re: C++ 运算符优先级列表" 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#114907">#</a>&nbsp;<a
 name="114907"></a>re: C++ 运算符优先级列表<a name="Post"></a>
					<span>
						2010-05-09 11:42
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl04_NameLink" 
target="_blank">gkhdgfg</a>
			</h4>
			<p>
				真是不错，省得翻书了。&nbsp;&nbsp;<a onclick='return SetReplyAuhor("gkhdgfg")' 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#post">回
复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" 
href="http://www.cppblog.com/comment?author=gkhdgfg" target="_blank">更多评
论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl04_DeleteLink" 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl04$DeleteLink','')"></a>&nbsp;&nbsp;<a
 id="AjaxHolder_Comments_CommentList_ctl04_EditLink"></a>
			</p>
		
</div><div id="AjaxHolder_Comments_divRefreshComments" 
style="text-align: right; margin-right: 10px; margin-bottom: 5px; 
font-size: 12px;"><a id="AjaxHolder_Comments_refreshList" 
href="javascript:__doPostBack('AjaxHolder$Comments$refreshList','')">刷新评
论列表</a></div>
<style>
td { font-size: 12px }
.commentTextBox 
{ 
    font-family : Verdana; 
    font-size: 13px;
 }
</style>
<!--Beging Temp Save-->
<style>.userData { BEHAVIOR: url(#default#userdata) }
	</style>
<div class="userData" id="CommentsPersistDiv"></div>
<script type="text/javascript">
function pageLoad()
{
    Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(handleInitializeRequest);
    //Sys.WebForms.PageRequestManager.getInstance().add_endRequest(handleEndRequest);
}

function handleInitializeRequest(sender, args)
{
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    var eid = args.get_postBackElement().id;
    if (eid.indexOf("DeleteLink")>0) 
    {
       args.get_postBackElement().innerHTML = "<font color='red'>正在删除...</font>";         
    }    
    if (eid.indexOf("btnSubmit")>0) 
    {
       document.getElementById("AjaxHolder_PostComment_ltSubmitMsg").innerHTML="正在提交...";
       document.getElementById("AjaxHolder_PostComment_btnSubmit").disabled = true;
       
    }    
   
}	

function TempSave(ElementID)
{
	try
	{
	CommentsPersistDiv.setAttribute("CommentContent",document.getElementById(ElementID).value);
	CommentsPersistDiv.save("CommentXMLStore");
	}
	catch(ex)
	{
	}
	
}
function Restore(ElementID)
{
	CommentsPersistDiv.load("CommentXMLStore");
	document.getElementById(ElementID).value=CommentsPersistDiv.getAttribute("CommentContent");
}	
			
			
</script>
<!--Ene TempSave-->
<div class="commentform">
<script type="text/javascript" src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/google_service.js">
</script>
<script type="text/javascript">
var c_enable_dfp = true;
if (navigator.userAgent.indexOf("Chrome/6.0.401.1") > 0) {
c_enable_dfp = false;
}
if (c_enable_dfp) {
try{
  GS_googleAddAdSenseService("ca-pub-4210569241504288");
  GS_googleEnableAllServices();
  } catch (e) { }
}
</script><script src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/google_ads.js"></script>
<script type="text/javascript">
if (c_enable_dfp) {
try{
  GA_googleAddSlot("ca-pub-4210569241504288", "cppblog_blogpost_bottom");
  GA_googleAddSlot("ca-pub-4210569241504288", "cppblog_commentbox_up");
  } catch (e) { }
}
</script>
<script type="text/javascript">
if (c_enable_dfp) {
try{
  GA_googleFetchAds();
  } catch (e) { }
}
</script>
<span id="AjaxHolder_PostComment_ltSubmitMsg" style="color: Red;"></span>
<br>
<a name="Feedback"></a>
	<table border="0" cellpadding="1" cellspacing="1">
		<tbody><tr>			
		<td colspan="3">
		<div style="line-height: 150%;">
		<a href="http://job.cnblogs.com/offer/8252/" target="_blank">沪江网诚聘C++开
发工程师</a>
		</div>
		<div id="itnews_block" style="line-height: 150%;" 
class="other_info_list">IT新闻：<br>· <a 
href="http://news.cnblogs.com/n/72450/" target="_blank">纽约时报：谷歌和甲骨文的开源战争</a><br>·
 <a href="http://news.cnblogs.com/n/72449/" target="_blank">十年前的8月：哪些IT人
物出现在新闻里</a><br>· <a href="http://news.cnblogs.com/n/72447/" 
target="_blank">RockPlayer让Android支持FFmpeg视频播放</a><br>· <a 
href="http://news.cnblogs.com/n/72444/" target="_blank">“超级网银”今天上线</a><br>·
 <a href="http://news.cnblogs.com/n/72443/" target="_blank">印度官方召开会议讨论黑莓
禁令</a><br></div>
		<div>
		技术专题：<br>
		<a href="http://kb.cnblogs.com/zt/jquery/" title="jQuery" 
target="_blank">jQuery</a>&nbsp; &nbsp;<a 
href="http://kb.cnblogs.com/zt/android/" title="Android" target="_blank">Android</a>&nbsp;
 &nbsp;<a href="http://kb.cnblogs.com/zt/ipad/" title="iPad" 
target="_blank">iPad</a>
		</div>
		</td>
		</tr>
		<tr>
			<td colspan="3">
<script type="Text/Javascript">
try{
  GA_googleFillSlot("cppblog_commentbox_up");
  } catch (e) { }
</script><script src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/ads_002"></script><div
 id="google_ads_div_cppblog_commentbox_up">
<ins style="width: 468px; height: 60px; border: 0pt none; display: 
inline-table; position: relative;"><ins style="width: 468px; height: 
60px; border: 0pt none; display: block; position: relative;"><iframe 
style="border: 0pt none; position: absolute; top: 0pt; left: 0pt;" 
marginheight="0" marginwidth="0" 
name="google_ads_iframe_cppblog_commentbox_up" 
id="google_ads_iframe_cppblog_commentbox_up" width="468" frameborder="0"
 height="60" scrolling="no"></iframe></ins></ins></div>
<script>GA_googleCreateDomIframe('google_ads_div_cppblog_commentbox_up' ,'cppblog_commentbox_up');</script>
<br> </td>
		</tr>
		<tr>
			<td width="75"></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td colspan="2">
			<a href="http://www.cnblogs.com/" target="_blank">博客园</a>&nbsp;  <a 
href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp; <a 
href="http://news.cnblogs.com/" target="_blank">IT新闻</a>&nbsp; <!--<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;  --><a
 href="http://a4.yeshj.com/rd/36006/" target="_blank">学英语</a>&nbsp;  <a 
href="http://job.cnblogs.com/cate-cpp_programmer/" target="_blank">C++程序
员招聘</a>
			</td>
		</tr>
		<tr>
			<td width="55">标题</td>
			<td><input name="AjaxHolder$PostComment$tbTitle" value="re: C++ 
运算符优先级列表" id="AjaxHolder_PostComment_tbTitle" class="commenttb" 
style="width: 320px;" type="text"></td>
			<td><span id="AjaxHolder_PostComment_RequiredFieldValidator1" 
style="color: Red; visibility: hidden;">请输入标题</span></td>
		</tr>
		<tr>
			<td>姓名</td>
			<td><input name="AjaxHolder$PostComment$tbName" 
id="AjaxHolder_PostComment_tbName" class="commenttb" style="width: 
320px;" type="text"></td>
			<td><span id="AjaxHolder_PostComment_RequiredFieldValidator2" 
style="color: Red; visibility: hidden;">请输入你的姓名</span></td>
		</tr>
		<tr>
			<td>主页</td>
			<td><input name="AjaxHolder$PostComment$tbUrl" 
id="AjaxHolder_PostComment_tbUrl" class="commenttb" style="width: 
320px;" type="text"></td>
			<td><font face="宋体"></font></td>
		</tr>
		<tr>
			<td colspan="3" align="left">
				<table id="AjaxHolder_PostComment_tbCaptchaImage" 
class="CommentForm" border="0" cellpadding="0" cellspacing="0">
		<tbody><tr>
			<td colspan="3">
							<span id="AjaxHolder_PostComment_Requiredfieldvalidator4" 
style="color: Red; display: none;">请输入验证码</span>
							<span id="AjaxHolder_PostComment_lblImage" style="color: Red; 
font-weight: bold;"></span>
						</td>
		</tr>
		<tr>
			<td width="78">验证码</td>
			<td><input name="AjaxHolder$PostComment$CodeNumberTextBox" 
id="AjaxHolder_PostComment_CodeNumberTextBox" type="text">*</td>
			<td align="left">
							<img src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/JpegImage.jpeg" 
id="AjaxHolder_PostComment_Img1">
						</td>
		</tr>
	</tbody></table>
	
			</td>
		</tr>
		<tr>
			<td colspan="3">内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)
				<span id="AjaxHolder_PostComment_RequiredFieldValidator3" 
style="color: Red; visibility: hidden;">请输入评论内容</span><br>
				<textarea name="AjaxHolder$PostComment$tbComment" rows="10" 
cols="50" id="AjaxHolder_PostComment_tbComment" class="commentTextBox" 
onkeydown="ctlent(event,'AjaxHolder_PostComment_tbComment')" 
style="width: 480px; height: 220px;"></textarea></td>
		</tr>
		<tr>
			<td colspan="3">
		<span id="AjaxHolder_PostComment_Message" style="color: Red;"></span>
		</td>
		</tr><tr>
			<td colspan="3"><input id="AjaxHolder_PostComment_chkRemember" 
name="AjaxHolder$PostComment$chkRemember" checked="checked" 
tabindex="-1" type="checkbox"><label 
for="AjaxHolder_PostComment_chkRemember">Remember Me?</label></td>
		</tr>
		<tr>
			<td height="23"><input name="AjaxHolder$PostComment$btnSubmit" 
value="提交" 
onclick="TempSave('AjaxHolder_PostComment_tbComment');WebForm_DoPostBackWithOptions(new
 WebForm_PostBackOptions(&quot;AjaxHolder$PostComment$btnSubmit&quot;, 
&quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" 
id="AjaxHolder_PostComment_btnSubmit" type="submit">
				</td>
			<td colspan="2" height="23">&nbsp;
				<a id="AjaxHolder_PostComment_lnkLogin" 
href="http://www.cppblog.com/login.aspx?ReturnURL=http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html&amp;SourceURL=/aqazero/archive/2009/12/25/8284.html">登
录</a>&nbsp;&nbsp;<a id="AjaxHolder_PostComment_linkLoginComment" 
onclick="if(document.getElementById('AjaxHolder_PostComment_tbComment').value
 != '') return confirm('未提交的评论内容将会丢失, 你真的要进入高级评论吗?');" 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html?login=1#Post">使
用高级评论</a>&nbsp;&nbsp;<a 
href="http://www.cppblog.com/RequireRegister.aspx">新用户注册</a>&nbsp;&nbsp;<a
 href="#Top">返回页首</a>&nbsp;&nbsp;<a 
id="AjaxHolder_PostComment_lbRestore" 
onclick="Restore('AjaxHolder_PostComment_tbComment'); return false;" 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html#Post">恢
复上次提交</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				</td>
		</tr>
		<tr>
			<td colspan="3">[使用Ctrl+Enter键可以直接提交]</td>
		</tr>
		<tr>
		<td colspan="3">
		<a href="http://a4.yeshj.com/rd/34138/" target="_blank">每天10分钟，轻松学英语</a>
		</td>
		</tr>
		<tr>
		<td colspan="3">
		<script type="text/javascript">
		if (c_enable_dfp) {
		try{
		  GA_googleFillSlot("cppblog_blogpost_bottom");
		  } catch (e) { }
		}
		</script><script src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/ads"></script><div
 id="google_ads_div_cppblog_blogpost_bottom">
<ins style="width: 300px; height: 250px; border: 0pt none; display: 
inline-table; position: relative;"><ins style="width: 300px; height: 
250px; border: 0pt none; display: block; position: relative;"><iframe 
style="border: 0pt none; position: absolute; top: 0pt; left: 0pt;" 
marginheight="0" marginwidth="0" 
name="google_ads_iframe_cppblog_blogpost_bottom" 
id="google_ads_iframe_cppblog_blogpost_bottom" width="300" 
frameborder="0" height="250" scrolling="no"></iframe></ins></ins></div>
<script>GA_googleCreateDomIframe('google_ads_div_cppblog_blogpost_bottom' ,'cppblog_blogpost_bottom');</script>
		</td>
		</tr>
		<tr>			
		<td colspan="3">
		<div id="job_block" style="line-height: 180%;">推荐职位：<br>· <a 
href="http://job.cnblogs.com/offer/8966/" target="_blank">高级软件工程师
（C#.Net/JS） (上海汇旌网络科技)</a><br>· <a 
href="http://job.cnblogs.com/offer/8953/" target="_blank">[急聘]兼职
ASP.NET/JAVA讲师(北风网)</a><br>· <a 
href="http://job.cnblogs.com/offer/8913/" target="_blank">ASP.NET MVC 
开发工程师 (创新通软科技)</a><br>· <a href="http://job.cnblogs.com/offer/8917/" 
target="_blank">ASP.NET高级软件工程师(南京为真网络)</a><br>· <a 
href="http://job.cnblogs.com/offer/8874/" target="_blank">.NET/Web开发工程师
(武汉百纳信息技术)</a><br>· <a href="http://job.cnblogs.com/offer/8857/" 
target="_blank">.NET高级开发工程师 (锐思互动（北京）)</a><br>· <a 
href="http://job.cnblogs.com/offer/8551/" target="_blank">ASP.NET程序开发（电子
商务网站）(北京电酷互动)</a><br>· <a href="http://job.cnblogs.com/offer/8410/" 
target="_blank">ASP.NET高级程序员(北京世纪英博)</a><br></div><div 
id="cnblogs_posts" style="line-height: 180%;">博客园首页随笔：<br>· <a 
href="http://www.cnblogs.com/pandora/archive/2010/08/30/FSharp_UsingList.html"
 target="_blank">【F#2.0系列】使用F#的List</a><br>· <a 
href="http://www.cnblogs.com/koon/archive/2010/08/30/MusicStoreInVS2008.html"
 target="_blank">《ASP.NET MVC Music Store Tutorial》在Visual Studio 
2008简体中文环境下的代码修订</a><br>· <a 
href="http://www.cnblogs.com/treeman/archive/2010/08/30/1812692.html" 
target="_blank">rails: Redmine权限设置心得</a><br>· <a 
href="http://www.cnblogs.com/eaglet/archive/2010/08/30/1812650.html" 
target="_blank">HubbleDotNet 开源全文搜索数据库项目--为数据库现有表建立全文索引(二) Updatable 模式</a><br>·
 <a 
href="http://www.cnblogs.com/dreamstec/archive/2010/08/30/1812631.html" 
target="_blank">EES 框架 BLL层代码组织与介绍</a><br></div><div id="job_block" 
style="line-height: 180%;">知识库：<br>· <a 
href="http://kb.cnblogs.com/page/72445/" target="_blank">巨大转变！教你使用
ASP.NET MVC2新功能</a><br>· <a href="http://kb.cnblogs.com/page/72404/" 
target="_blank">翻译-你必须知道的28个HTML5特征、窍门和技术</a><br>· <a 
href="http://kb.cnblogs.com/page/72374/" target="_blank">使用OneNote来构建你自己
的知识库(OFFICE2010)</a><br>· <a href="http://kb.cnblogs.com/page/72366/" 
target="_blank">C#创建不规则窗体的几种方式</a><br>· <a 
href="http://kb.cnblogs.com/page/72165/" target="_blank">C# VS Java</a><br></div>
		</td>
		</tr>
		<tr>
			<td colspan="3" height="5">
<div id="divRelativePosts">
相关文章:
	
			<ul style="margin-top: 0px;">
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl01_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2010/08/25/124744.html">多边形
等距线算法的实现</a>
			</li>
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl02_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2010/04/15/112672.html">simulate
 OnIdle in MFC ActiveX control</a>
			</li>
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl03_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2010/03/04/108868.html">这是个
很狡猾的bug。</a>
			</li>
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl04_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2009/11/06/100283.html">vista
 windows 7 areo progress bar</a>
			</li>
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl05_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2009/11/05/100221.html">从资源
中加载jpg, png到GDI+ Image</a>
			</li>
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl06_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2009/10/29/99731.html">恨不相逢
未嫁时</a>
			</li>
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl07_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2008/11/19/67287.html">create
 mfc dialog by template will drive you mad.</a>
			</li>
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl08_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2008/08/27/60165.html">图形文本
编辑器的源码和简单文档</a>
			</li>
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl09_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2008/06/06/52365.html">谁能告诉
我有没有程序员专用键盘？我要C++语法的那种-_-!</a>
			</li>
		
			<li style="list-style: none outside none;">
				<a 
id="AjaxHolder_PostComment_ctl08_RelativePostsList_ctl10_Hyperlink1" 
href="http://www.cppblog.com/aqazero/archive/2008/05/21/50660.html">Create
 projects easily with private MFC, ATL and CRT assemblies</a>
			</li>
		
			</ul>
		
</div>
</td>
		</tr>
		<tr>
			<td colspan="3"></td>
		</tr>
		<tr>
			<td colspan="3" height="1">网站导航:<div id="blogsite">
			<a href="http://www.cnblogs.com/">博客园</a>&nbsp;&nbsp;
			<a href="http://news.cnblogs.com/">IT新闻</a>&nbsp;&nbsp;
			<a href="http://home.cnblogs.com/">博客园个人主页</a>&nbsp;&nbsp;
			<a href="http://www.blogjava.net/">BlogJava</a>&nbsp;&nbsp;
			<a href="http://www.cnweblog.com/">博客生活</a>&nbsp;&nbsp;
			<a href="http://www.cnitblog.com/">IT博客网</a>&nbsp;&nbsp;
			<a href="http://www.phpweblog.net/">PHP博客</a>&nbsp;&nbsp;
			<a href="http://space.cnblogs.com/">博客园社区</a>&nbsp;&nbsp;
			<a 
href="http://www.cppblog.com/aqazero/archive/2009/12/25/8284.html?opt=admin">管
理</a>
			</div></td>
		</tr>
		<tr>
			<td colspan="3">
				
<br>
最简洁阅读版式：<br><a href="http://archive.cnblogs.com/c/8284/">C++ 运算符优先级列表</a>
<br>

</td>
		</tr>
	</tbody></table>	
</div>
<div id="AjaxHolder_PostComment_ValidationSummary1" style="color: Red; 
display: none;">

	</div>

</div>

				
</div>


<p id="footer">
	Powered by: 
	<br>
	
	<a id="Footer1_Hyperlink3" name="Hyperlink1" 
href="http://www.cppblog.com/" style="font-family: Verdana; font-size: 
12px;">C++博客</a>
	<br>
	Copyright © brent
</p>    
    
<script type="text/javascript">
//<![CDATA[
var Page_ValidationSummaries =  new Array(document.getElementById("AjaxHolder_PostComment_ValidationSummary1"));
var Page_Validators =  new Array(document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator1"), document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator2"), document.getElementById("AjaxHolder_PostComment_Requiredfieldvalidator4"), document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator3"));
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
var AjaxHolder_PostComment_RequiredFieldValidator1 = document.all ? document.all["AjaxHolder_PostComment_RequiredFieldValidator1"] : document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator1");
AjaxHolder_PostComment_RequiredFieldValidator1.controltovalidate = "AjaxHolder_PostComment_tbTitle";
AjaxHolder_PostComment_RequiredFieldValidator1.errormessage = "请输入标题";
AjaxHolder_PostComment_RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_RequiredFieldValidator1.initialvalue = "";
var AjaxHolder_PostComment_RequiredFieldValidator2 = document.all ? document.all["AjaxHolder_PostComment_RequiredFieldValidator2"] : document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator2");
AjaxHolder_PostComment_RequiredFieldValidator2.controltovalidate = "AjaxHolder_PostComment_tbName";
AjaxHolder_PostComment_RequiredFieldValidator2.errormessage = "请输入你的姓名";
AjaxHolder_PostComment_RequiredFieldValidator2.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_RequiredFieldValidator2.initialvalue = "";
var AjaxHolder_PostComment_Requiredfieldvalidator4 = document.all ? document.all["AjaxHolder_PostComment_Requiredfieldvalidator4"] : document.getElementById("AjaxHolder_PostComment_Requiredfieldvalidator4");
AjaxHolder_PostComment_Requiredfieldvalidator4.controltovalidate = "AjaxHolder_PostComment_CodeNumberTextBox";
AjaxHolder_PostComment_Requiredfieldvalidator4.errormessage = "请输入验证码";
AjaxHolder_PostComment_Requiredfieldvalidator4.display = "Dynamic";
AjaxHolder_PostComment_Requiredfieldvalidator4.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_Requiredfieldvalidator4.initialvalue = "";
var AjaxHolder_PostComment_RequiredFieldValidator3 = document.all ? document.all["AjaxHolder_PostComment_RequiredFieldValidator3"] : document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator3");
AjaxHolder_PostComment_RequiredFieldValidator3.controltovalidate = "AjaxHolder_PostComment_tbComment";
AjaxHolder_PostComment_RequiredFieldValidator3.errormessage = "请输入评论内容";
AjaxHolder_PostComment_RequiredFieldValidator3.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_RequiredFieldValidator3.initialvalue = "";
var AjaxHolder_PostComment_ValidationSummary1 = document.all ? document.all["AjaxHolder_PostComment_ValidationSummary1"] : document.getElementById("AjaxHolder_PostComment_ValidationSummary1");
AjaxHolder_PostComment_ValidationSummary1.showmessagebox = "True";
AjaxHolder_PostComment_ValidationSummary1.showsummary = "False";
//]]>
</script>


<script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        
document.getElementById('AjaxHolder_PostComment_ValidationSummary1').dispose = function() {
    Array.remove(Page_ValidationSummaries, document.getElementById('AjaxHolder_PostComment_ValidationSummary1'));
}
Sys.Application.initialize();

document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator1').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator1'));
}

document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator2').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator2'));
}

document.getElementById('AjaxHolder_PostComment_Requiredfieldvalidator4').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_Requiredfieldvalidator4'));
}

document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator3').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator3'));
}
//]]>
</script>
</form>
    <script type="text/javascript">
        if (document.getElementById('cnblogsgooglead') != null) {
            document.getElementById('cnblogsgooglead').innerHTML = document.getElementById('cnblogsgoogleadcode').innerHTML;
            document.getElementById('cnblogsgoogleadcode').innerHTML = '';
        }

        if (document.getElementById('leftcontent') != null) {
            if (document.getElementById('leftcontent').style.display == 'none') {
                document.getElementById('leftcontent').style.display = 'inline';
            }
        }
        if (document.getElementById('Blogleftcontent') != null) {
            if (document.getElementById('cnblogsleftcontent').style.display == 'none') {
                document.getElementById('cnblogsleftcontent').style.display = 'inline';
            }
        }

        if (document.getElementById('cnblogsleftcontent') != null) {
            if (document.getElementById('cnblogsleftcontent').style.display == 'none') {
                document.getElementById('cnblogsleftcontent').style.display = 'inline';
            }
        }

        if (document.getElementById('rightmenu') != null) {
            if (document.getElementById('rightmenu').style.display == 'none') {
                document.getElementById('rightmenu').style.display = 'inline';
            }
        }
        if (document.getElementById('leftmenu') != null) {
            if (document.getElementById('leftmenu').style.display == 'none') {
                document.getElementById('leftmenu').style.display = 'inline';
            }
            if (document.getElementById('lefttemp') != null) {
                document.getElementById('leftmenu').innerHTML = document.getElementById('lefttemp').innerHTML;
                document.getElementById('lefttemp').innerHTML = '';
            }
        }

        if (document.getElementById('left') != null) {
            if (document.getElementById('left').style.display == 'none') {
                document.getElementById('left').style.display = 'inline';
            }
        }

        if (document.getElementById('cnblogsleftmenu') != null) {
            if (document.getElementById('cnblogsleftmenu').style.display == 'none') {
                document.getElementById('cnblogsleftmenu').style.display = 'inline';
            }
        }

        if (document.getElementById('menu') != null) {
            if (document.getElementById('menu').style.display == 'none') {
                document.getElementById('menu').style.display = 'inline';
            }
        }

        if (document.getElementById('cnblogsmenu') != null) {
            if (document.getElementById('cnblogsmenu').style.display == 'none') {
                document.getElementById('cnblogsmenu').style.display = 'inline';
            }
        }
    </script>    
	<script type="text/javascript">
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	</script><script src="C%E4%BC%98%E5%85%88%E7%BA%A7_files/ga.js" type="text/javascript"></script>
	<script type="text/javascript">
	try {
	var pageTracker = _gat._getTracker("UA-476124-5");
	pageTracker._trackPageview();
	} catch(err) {}</script>
</body></html>